<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge"> 
<meta name="viewport" content="width=device-width, initial-scale=1"> 
<title>博客登录</title>
<link rel="stylesheet" type="text/css" href="/home/css/normalize.css" />
<link rel="stylesheet" type="text/css" href="/home/css/demo.css" />
<!--必要样式-->
<link rel="stylesheet" type="text/css" href="/home/css/component.css" />
<!--[if IE]>
<script src="/home/js/html5.js"></script>
<![endif]-->
	@include("admin.public.script")
</head>
<body>
		<div class="container demo-1">
			<div class="content">
				<div id="large-header" class="large-header">
					<canvas id="demo-canvas"></canvas>
					<div class="logo_box">
						<h3>欢迎你</h3>
						<form action="#" name="f" method="post">
							<div class="input_outer">
								<span class="u_user"></span>
								<input name="phone" class="text" style="color: #FFFFFF !important" type="text" placeholder="请输入手机号">
							</div>
							<div class="input_outer">
								<span class="us_uer"></span>
								<input name="password" class="text" style="color: #FFFFFF !important; position:absolute; z-index:100;"value="" type="password" placeholder="请输入密码">
							</div>
							<div>
								<div class="input_outer" style="width: 170px">
									<span class="us_uer"></span>
									<input name="yzpass" class="text" style="color: #FFFFFF !important; position:absolute;width: 170px"value="" type="text" placeholder="请输入验证码">
									<div style="position: absolute;right: -140px;top:12px">
										<a id="yzm" href="javascript:;" onclick="sendCode();" style="color: #0b8fba;">发送验证码</a>
									</div>
								</div>
							</div>
							<div class="mb2"><a class="act-but submit" href="javascript:;" style="color: #FFFFFF">登录</a></div>
						</form>
					</div>
				</div>
			</div>
		</div><!-- /container -->

		<script type="text/javascript">
			//倒计时60s
			var countdown = 60;
			function settime() {
				if(countdown==0){
					$('#yzm').attr('onclick','sendCode');
					$('#yzm').text('发送验证码');
					countdown = 60
				}else{
					$('#yzm').removeAttr('onclick','sendCode');
					$('#yzm').text('重新发送（'+countdown+'s）');
					countdown--;
					setTimeout(function () {
						settime();
					},1000);
				}
			}
			function sendCode() {
				//获取手机号
				var phone = $('input[name=phone]').val();
				//判断手机号是否为空
				if(!phone){
					layer.msg('手机号不能为空');
					return ;
				}

				settime()
				//触发ajax,请求验证码
				$.get('sendcode',{'phone':phone},function (data) {
					if(JSON.parse(data).status==0){
						layer.msg('发送成功！',{'time':1000,'icon':6});
					}else{
						layer.msg('发送失败！',{'time':1000,'icon':5});
					}
				});
			}
		</script>
		<script src="/home/js/TweenLite.min.js"></script>
		<script src="/home/js/EasePack.min.js"></script>
		<script src="/home/js/rAF.js"></script>
		<script src="/home/js/demo-1.js"></script>
		<div style="text-align:center;">
</div>
	</body>
</html>